<template>
  <h2 ref="title">你好</h2>
  <button @click="outTitle">点击输出title内容</button>
  <Person/>
</template>

<script lang="ts" setup>
  import Person from './components/Person.vue'
  defineOptions({ //宏函数
    name:'App'
  })

  import {ref} from "vue";

  let title = ref();

  function outTitle(){
    console.log(title.value);
  }
</script>

